import request from "@/utils/request.js"

const name="stockhouse"

export default {
	getList() {
	  return request({
	    url: '/stockhouse',
	    method: 'get'
	  });
	},
	
	findById(id) {
	  return request({
	    url: `/${name}/${id}`,
	    method: 'get',
	  });
	},
	
	findAll(page, size) {
	  return request({
	    url: `/${name}/${page}/${size}`,
	    method: 'get'
	  });
	},
	
	findAll() {
	  return request({
	    url: `/${name}`,
	    method: 'get'
	  });
	},
	
	deleteById(id) {
	  return request({
	    url: `/${name}/${id}`,
	    method: 'delete',
	  });
	
	},
	
	save(pojo) {
	  return request({
	    url: `/${name}`,
	    method: 'post',
	    data: pojo
	  });
	},
	
	}
	
	
	